<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('space_blog_view');
0
|| checktplrefresh('./template/default/home/space_blog_view.htm', './template/default/common/seccheck.htm', 1307284448, 'diy', './data/template/1_diy_home_space_blog_view.tpl.php', './template/default', 'home/space_blog_view')
|| checktplrefresh('./template/default/home/space_blog_view.htm', './template/default/home/space_userabout.htm', 1307284448, 'diy', './data/template/1_diy_home_space_blog_view.tpl.php', './template/default', 'home/space_blog_view')
;?>
<?php $_G['home_tpl_titles'] = array($blog['subject'], '日志');
$_G['home_tpl_spacemenus'][] = "<a href=\"home.php?mod=space&amp;uid=$space[uid]&amp;do=$do&amp;view=me\">TA 的所有日志</a>";
$_G['home_tpl_spacemenus'][] = "<a href=\"home.php?mod=space&amp;uid=$space[uid]&amp;do=blog&amp;id=$blog[blogid]\">查看日志</a>";
$friendsname = array(1 => '仅好友可见',2 => '指定好友可见',3 => '仅自己可见',4 => '凭密码可见');?><?php include template('home/space_header'); ?><div id="ct" class="ct2 wp cl">
<div class="mn">
<div class="bm">
<div class="bm_h cl">
<?php if($space['self']) { ?><span class="xi2 y"><a href="home.php?mod=spacecp&amp;ac=blog" class="addnew">发表新日志</a></span><?php } ?>
<h1 class="mt">日志</h1>
</div>
<div class="bm_c">

<div class="vw mbm">
<div class="h pbm">
<h1 class="ph" <?php if($blog['magiccolor']) { ?> style="color: <?php echo $_G['colorarray'][$blog['magiccolor']];?>"<?php } ?>>
<?php echo $blog['subject'];?>
<?php if($blog['status'] == 1) { ?>
<span class="xi1">(待审核)</span>
<?php } ?>
</h1>
<p class="xg2">
<?php if($blog['friend']) { ?>
<span class="y"><?php echo $friendsname[$blog['friend']];?></span>
<?php } if($blog['hot']) { ?><strong class="hot">热度 <em><?php echo $blog['hot'];?></em></strong><?php } if($blog['friend']) { ?>
<span class="y"><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=<?php echo $do;?>&amp;view=me&amp;friend=<?php echo $blog['friend'];?>" class="xg1"><?php echo $friendsname[$value['friend']];?></a></span>
<?php } if($blog['viewnum']) { ?><span class="xg1">已有 <?php echo $blog['viewnum'];?> 次阅读</span><?php } ?> 
<span class="xg1"><?php echo dgmdate($blog[dateline]);?></span>

<?php if($classarr['classname']) { ?><span class="pipe">|</span><span class="xg1">个人分类:<a href="home.php?mod=space&amp;uid=<?php echo $blog['uid'];?>&amp;do=blog&amp;classid=<?php echo $blog['classid'];?>&amp;view=me"><?php echo $classarr['classname'];?></a></span><?php } if($blog['catname']) { ?><span class="pipe">|</span><span class="xg1">系统分类:<a href="home.php?mod=space&amp;do=blog&amp;view=all&amp;catid=<?php echo $blog['catid'];?>"><?php echo $blog['catname'];?></a></span><?php } if($blog['tag']) { ?>
<span class="pipe">|</span>
<span class="ptg xg1"><?php $tagi = 0;?><?php if(is_array($blog['tag'])) foreach($blog['tag'] as $var) { if($tagi) { ?>, <?php } ?><a href="misc.php?mod=tag&amp;id=<?php echo $var['0'];?>" target="_blank"><?php echo $var['1'];?></a><?php $tagi++;?><?php } ?>
</span>
<?php } ?>

</p>
<?php if(!empty($_G['setting']['pluginhooks']['space_blog_title'])) echo $_G['setting']['pluginhooks']['space_blog_title'];?>
</div>

<div id="blog_article" class="d cl"><?php echo adshow("blog/a_b");?><?php echo $blog['message'];?>
</div>
<?php if($blog['friend'] != 3 && !$blog['noreply']) { ?>
<div id="click_div"><?php include template('home/space_click'); ?></div>
<?php } ?>
<div class="o cl">
<a href="home.php?mod=spacecp&amp;ac=favorite&amp;type=blog&amp;id=<?php echo $blog['blogid'];?>&amp;spaceuid=<?php echo $blog['uid'];?>&amp;handlekey=favoritebloghk_<?php echo $blog['blogid'];?>" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr ofav">收藏</a>
<a href="home.php?mod=spacecp&amp;ac=share&amp;type=blog&amp;id=<?php echo $blog['blogid'];?>&amp;handlekey=sharebloghk_<?php echo $blog['blogid'];?>" id="a_share" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr">分享</a>
<?php if(($_G['uid'] == $blog['uid']) && $_G['setting']['magicstatus'] && ($_G['setting']['magics']['call'] || $_G['setting']['magics']['updateline'] || $_G['setting']['magics']['downdateline'] || $_G['setting']['magics']['hot'] || $_G['setting']['magics']['highlight'])) { ?>
<a href="javascript:;" id="usemagic" onmouseover="showMenu(this.id);">使用道具</a>
<span class="pipe">|</span>
<ul id="usemagic_menu" class="p_pop mgcmn" style="display:none;">
<?php if($_G['setting']['magics']['call']) { ?>
<li><a href="home.php?mod=magic&amp;mid=call&amp;idtype=blogid&amp;id=<?php echo $blog['blogid'];?>" id="a_magic_call" onclick="showWindow('magics', this.href, 'get', 0);"><img src="<?php echo STATICURL;?>image/magic/call.small.gif" alt="call" class="vm" /> <?php echo $_G['setting']['magics']['call'];?></a></li>
<?php } if($_G['setting']['magics']['updateline']) { ?>
<li><a href="home.php?mod=magic&amp;mid=updateline&amp;idtype=blogid&amp;id=<?php echo $blog['blogid'];?>" id="a_magic_updateline" onclick="showWindow('magics', this.href, 'get', 0);"><img src="<?php echo STATICURL;?>image/magic/updateline.small.gif" alt="updateline" class="vm" /> <?php echo $_G['setting']['magics']['updateline'];?></a></li>
<?php } if($_G['setting']['magics']['downdateline']) { ?>
<li><a href="home.php?mod=magic&amp;mid=downdateline&amp;idtype=blogid&amp;id=<?php echo $blog['blogid'];?>" id="a_magic_downdateline" onclick="showWindow('magics', this.href, 'get', 0);"><img src="<?php echo STATICURL;?>image/magic/downdateline.small.gif" alt="downdateline" class="vm" /> <?php echo $_G['setting']['magics']['downdateline'];?></a></li>
<?php } if($_G['setting']['magics']['hot']) { ?>
<li><a href="home.php?mod=magic&amp;mid=hot&amp;idtype=blogid&amp;id=<?php echo $blog['blogid'];?>" id="a_magic_hot" onclick="showWindow('magics', this.href, 'get', 0);"><img src="<?php echo STATICURL;?>image/magic/hot.small.gif" alt="hot" class="vm" /> <?php echo $_G['setting']['magics']['hot'];?></a></li>
<?php } if($_G['setting']['magics']['highlight']) { ?>
<li><a href="home.php?mod=magic&amp;mid=highlight&amp;idtype=blogid&amp;id=<?php echo $blog['blogid'];?>" id="a_magic_highlight" onclick="showWindow('magics', this.href, 'get', 0);"><img src="<?php echo STATICURL;?>image/magic/highlight.small.gif" alt="hot" class="vm" /> <?php echo $_G['setting']['magics']['highlight'];?></a></li>
<?php } ?>
</ul>
<?php } ?>

<?php if(!empty($_G['setting']['pluginhooks']['space_blog_op_extra'])) echo $_G['setting']['pluginhooks']['space_blog_op_extra'];?>
<?php if($_G['uid'] == $blog['uid'] || checkperm('manageblog')) { ?>
<a href="home.php?mod=spacecp&amp;ac=blog&amp;blogid=<?php echo $blog['blogid'];?>&amp;op=edit">编辑</a><span class="pipe">|</span>
<a href="home.php?mod=spacecp&amp;ac=blog&amp;blogid=<?php echo $blog['blogid'];?>&amp;op=delete&amp;handlekey=delbloghk_<?php echo $blog['blogid'];?>" id="blog_delete_<?php echo $blog['blogid'];?>" onclick="showWindow(this.id, this.href, 'get', 0);">删除</a><span class="pipe">|</span>
<?php } if(checkperm('manageblog')) { ?>
IP: <?php echo $blog['postip'];?><span class="pipe">|</span>
<a href="home.php?mod=spacecp&amp;ac=blog&amp;blogid=<?php echo $blog['blogid'];?>&amp;op=edithot&amp;handlekey=bloghothk_<?php echo $blog['blogid'];?>" id="blog_hot_<?php echo $blog['blogid'];?>" onclick="showWindow(this.id, this.href, 'get', 0);">热度</a><span class="pipe">|</span>
<?php } if(!$blog['friend'] && !$blog['pushedaid'] && (getstatus($_G['member']['allowadmincp'], 2) || $_G['group']['allowmanagearticle'])) { ?>
<a href="portal.php?mod=portalcp&amp;ac=index&amp;op=push&amp;idtype=blogid&amp;id=<?php echo $blog['blogid'];?>" onclick="showWindow('push', this.href, 'get', 0)">生成文章</a><span class="pipe">|</span>
<?php } if($_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 5)) { ?>
<a href="portal.php?mod=portalcp&amp;ac=portalblock&amp;op=recommend&amp;idtype=blogid&amp;id=<?php echo $blog['blogid'];?>" onclick="showWindow('recommend', this.href, 'get', 0)">模块推送</a><span class="pipe">|</span>
<?php } if($_G['uid'] != $blog['uid']) { ?>
<a href="javascript:;" onclick="showWindow('miscreport<?php echo $blog['blogid'];?>', 'misc.php?mod=report&rtype=blog&uid=<?php echo $blog['uid'];?>&rid=<?php echo $blog['blogid'];?>', 'get', -1);return false;">举报</a>
<?php } ?>
</div>

</div>

<div class="ct_vw cl">
<div class="ct_vw_sd">
<?php if($otherlist) { ?>
<div class="mbm cl">
<h2 class="mbm ptn pbn bbs"><span class="xs1 xw0 y"><a href="home.php?mod=space&amp;uid=<?php echo $blog['uid'];?>&amp;do=blog&amp;view=me">全部</a></span>作者的其他最新日志</h2>
<ul class="xl xl1 cl"><?php if(is_array($otherlist)) foreach($otherlist as $value) { ?><li>&bull; <a href="home.php?mod=space&amp;uid=<?php echo $value['uid'];?>&amp;do=blog&amp;id=<?php echo $value['blogid'];?>" target="_blank"><?php echo $value['subject'];?></a></li>
<?php } ?>
</ul>
</div>
<?php } if($newlist) { ?>
<div class="mbm cl">
<h2 class="mbm ptn pbn bbs">热门日志导读</h2>
<ul class="xl xl1 cl"><?php if(is_array($newlist)) foreach($newlist as $value) { ?><li><span class="xl1_elp">&bull; <a href="home.php?mod=space&amp;uid=<?php echo $value['uid'];?>&amp;do=blog&amp;id=<?php echo $value['blogid'];?>" target="_blank"><?php echo $value['subject'];?></a></span></li>
<?php } ?>
</ul>
</div>
<?php } ?>
</div>

<div class="ct_vw_mn">
<div id="div_main_content" class="mbm">
<h3 class="ptn pbn bbs">
<?php if(!empty($list)) { ?>
<a href="home.php?mod=space&amp;uid=<?php echo $blog['uid'];?>&amp;do=<?php echo $do;?>&amp;id=<?php echo $id;?>#quickcommentform_<?php echo $id;?>" onclick="if($('comment_message')){$('comment_message').focus();return false;}" class="y xi2 xw0">发表评论</a>
<?php } ?>
评论 (<span id="comment_replynum"><?php echo $blog['replynum'];?></span> 个评论)
</h3>
<?php if($cid) { ?>
<div class="i">
当前只显示与您操作相关的单个评论，<a href="home.php?mod=space&amp;uid=<?php echo $blog['uid'];?>&amp;do=blog&amp;id=<?php echo $blog['blogid'];?>">点击此处查看全部评论</a>
</div>
<?php } ?>
<div id="comment_ul" class="xld xlda"><?php if(is_array($list)) foreach($list as $k => $value) { include template('home/space_comment_li'); } ?>
</div>
</div>
<?php if($multi) { ?><div class="pgs cl mbm"><?php echo $multi;?></div><?php } if(!$blog['noreply']) { ?>
<form id="quickcommentform_<?php echo $id;?>" action="home.php?mod=spacecp&amp;ac=comment" method="post" autocomplete="off" onsubmit="ajaxpost('quickcommentform_<?php echo $id;?>', 'return_qcblog_<?php echo $id;?>');doane(event);">
<p>
<span id="comment_face" title="插入表情" onclick="showFace(this.id, 'comment_message');return false;" class="cur1"><img src="<?php echo IMGDIR;?>/facelist.gif" alt="facelist" class="vm" /></span>
<?php if(!empty($_G['setting']['pluginhooks']['space_blog_face_extra'])) echo $_G['setting']['pluginhooks']['space_blog_face_extra'];?>
<?php if($_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle'])) { ?>
<a id="a_magic_doodle" href="home.php?mod=magic&amp;mid=doodle&amp;showid=comment_doodle&amp;target=comment_message" onclick="showWindow(this.id, this.href, 'get', 0)"><img src="<?php echo STATICURL;?>image/magic/doodle.small.gif" alt="doodle" class="vm" /> <?php echo $_G['setting']['magics']['doodle'];?></a>
<?php } ?>
</p>
<div class="tedt mtn mbn">
<div class="area">
<?php if($_G['uid']) { ?>
<textarea id="comment_message" onkeydown="ctrlEnter(event, 'commentsubmit_btn');" name="message" rows="3" class="pt"></textarea>
<?php } else { ?>
<div class="pt hm">您需要登录后才可以评论 <a href="member.php?mod=logging&amp;action=login" onclick="showWindow('login', this.href)" class="xi2">登录</a> | <a href="member.php?mod=<?php echo $_G['setting']['regname'];?>" class="xi2"><?php echo $_G['setting']['reglinkname'];?></a></div>
<?php } ?>
</div>
</div>
<?php if(checkperm('seccode') && ($secqaacheck || $seccodecheck)) { ?><?php
$sectpl = <<<EOF
<sec> <span id="sec<hash>" onclick="showMenu(this.id);"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div>
EOF;
?>
<div class="mtm mbm sec"><?php $_G['sechashi'] = !empty($_G['cookie']['sechashi']) ? $_G['sechash'] + 1 : 0;
$sechash = 'S'.($_G['inajax'] ? 'A' : '').$_G['sid'].$_G['sechashi'];
$sectpl = !empty($sectpl) ? explode("<sec>", $sectpl) : array('<br />',': ','<br />','');
$sectpldefault = $sectpl;
$sectplqaa = str_replace('<hash>', 'qaa'.$sechash, $sectpldefault);
$sectplcode = str_replace('<hash>', 'code'.$sechash, $sectpldefault);
$secshow = !isset($secshow) ? 1 : $secshow;
$sectabindex = !isset($sectabindex) ? 1 : $sectabindex;?><?php
$__STATICURL = STATICURL;$seccheckhtml = <<<EOF

<input name="sechash" type="hidden" value="{$sechash}" />

EOF;
 if($sectpl) { if($secqaacheck) { 
$seccheckhtml .= <<<EOF

{$sectplqaa['0']}验证问答{$sectplqaa['1']}<input name="secanswer" id="secqaaverify_{$sechash}" type="text" autocomplete="off" style="width:100px" class="txt px vm" onblur="checksec('qaa', '{$sechash}')" tabindex="{$sectabindex}" />
<a href="javascript:;" onclick="updatesecqaa('{$sechash}');doane(event);" class="xi2">换一个</a>
<span id="checksecqaaverify_{$sechash}"><img src="{$__STATICURL}image/common/none.gif" width="16" height="16" class="vm" /></span>
{$sectplqaa['2']}<span id="secqaa_{$sechash}"></span>

EOF;
 if($secshow) { 
$seccheckhtml .= <<<EOF
<script type="text/javascript" reload="1">updatesecqaa('{$sechash}');</script>
EOF;
 } 
$seccheckhtml .= <<<EOF

{$sectplqaa['3']}

EOF;
 } if($seccodecheck) { 
$seccheckhtml .= <<<EOF

{$sectplcode['0']}验证码{$sectplcode['1']}<input name="seccodeverify" id="seccodeverify_{$sechash}" type="text" autocomplete="off" style="
EOF;
 if($_G['setting']['seccodedata']['type'] != 1) { 
$seccheckhtml .= <<<EOF
ime-mode:disabled;
EOF;
 } 
$seccheckhtml .= <<<EOF
width:100px" class="txt px vm" onblur="checksec('code', '{$sechash}')" tabindex="{$sectabindex}" />
<a href="javascript:;" onclick="updateseccode('{$sechash}');doane(event);" class="xi2">换一个</a>
<span id="checkseccodeverify_{$sechash}"><img src="{$__STATICURL}image/common/none.gif" width="16" height="16" class="vm" /></span>
{$sectplcode['2']}<span id="seccode_{$sechash}"></span>

EOF;
 if($secshow) { 
$seccheckhtml .= <<<EOF
<script type="text/javascript" reload="1">updateseccode('{$sechash}');</script>
EOF;
 } 
$seccheckhtml .= <<<EOF

{$sectplcode['3']}

EOF;
 } } 
$seccheckhtml .= <<<EOF


EOF;
?><?php unset($secshow);?><?php if(empty($secreturn)) { ?><?php echo $seccheckhtml;?><?php } ?></div>
<?php } ?>
<p class="pns">
<input type="hidden" name="referer" value="home.php?mod=space&amp;uid=<?php echo $blog['uid'];?>&amp;do=<?php echo $do;?>&amp;id=<?php echo $id;?>" />
<input type="hidden" name="id" value="<?php echo $id;?>" />
<input type="hidden" name="idtype" value="blogid" />
<input type="hidden" name="handlekey" value="qcblog_<?php echo $id;?>" />
<input type="hidden" name="commentsubmit" value="true" />
<input type="hidden" name="quickcomment" value="true" />
<button type="submit" name="commentsubmit_btn"value="true" id="commentsubmit_btn" class="pn"<?php if(!$_G['uid']) { ?> onclick="showWindow(this.id, this.form.action);return false;"<?php } ?>><strong>评论</strong></button>
<span id="return_qcblog_<?php echo $id;?>"></span>
</p>
<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
</form>
<script type="text/javascript">
function succeedhandle_qcblog_<?php echo $id;?>(url, msg, values) {
if(values['cid']) {
comment_add(values['cid']);
} else {
$('return_qcblog_<?php echo $id;?>').innerHTML = msg;
}
<?php if(checkperm('seccode') && $sechash) { if($secqaacheck) { ?>
updatesecqaa('<?php echo $sechash;?>');
<?php } if($seccodecheck) { ?>
updateseccode('<?php echo $sechash;?>');
<?php } } ?>
}
</script>
<?php } ?>

<script type="text/javascript">
function addFriendCall(){
var el = $('friendinput');
if(!el || el.value == "")	return;
var s = '<input type="checkbox" name="fusername[]" class="pc" value="'+el.value+'" id="'+el.value+'" checked="checked">';
s += '<label for="'+el.value+'">'+el.value+'</label>';
s += '<br />';
$('friendscall').innerHTML += s;
el.value = '';
}
resizeImg('div_main_content','450');

var elems = selector('dd[class~=magicflicker]');
for(var i=0; i<elems.length; i++){
magicColor(elems[i]);
}
</script>

</div>
</div>


</div>
</div>
</div>
<div class="sd"><div id="pcd" class="bm cl"><?php $encodeusername = rawurlencode($space[username]);?><div <?php if(!$_G['setting']['homestatus']) { ?>class="bm_c"<?php } ?>>
<div class="hm">
<p><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>"><?php echo avatar($space[uid],middle);?></a></p>
<h2 class="xs2"><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>"><?php echo $space['username'];?></a></h2>
</div>
<ul class="xl xl2 cl ul_list">
<?php if($space['self']) { if($_G['setting']['homestatus']) { ?>
<li class="ul_diy"><a href="home.php?mod=space&amp;diy=yes">装扮空间</a></li>
<li class="ul_msg"><a href="home.php?mod=space&amp;do=wall">查看留言</a></li>
<?php } ?>
<li class="ul_avt"><a href="home.php?mod=spacecp&amp;ac=avatar">编辑头像</a></li>
<li class="ul_profile"><a href="home.php?mod=spacecp&amp;ac=profile">更新资料</a></li>
<?php } else { ?><?php require_once libfile('function/friend');$isfriend=friend_check($space[uid]);?><?php if(!$isfriend) { ?>
<li class="ul_add"><a href="home.php?mod=spacecp&amp;ac=friend&amp;op=add&amp;uid=<?php echo $space['uid'];?>&amp;handlekey=addfriendhk_<?php echo $space['uid'];?>" id="a_friend_li_<?php echo $space['uid'];?>" onclick="showWindow(this.id, this.href, 'get', 0);">加为好友</a></li>
<?php } else { ?>
<li class="ul_ignore"><a href="home.php?mod=spacecp&amp;ac=friend&amp;op=ignore&amp;uid=<?php echo $space['uid'];?>&amp;handlekey=ignorefriendhk_<?php echo $space['uid'];?>" id="a_ignore_<?php echo $space['uid'];?>" onclick="showWindow(this.id, this.href, 'get', 0);">解除好友</a></li>
<?php } if($_G['setting']['homestatus']) { ?>
<li class="ul_contect"><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=wall">给我留言</a></li>
<li class="ul_poke"><a href="home.php?mod=spacecp&amp;ac=poke&amp;op=send&amp;uid=<?php echo $space['uid'];?>&amp;handlekey=propokehk_<?php echo $space['uid'];?>" id="a_poke_<?php echo $space['uid'];?>" onclick="showWindow(this.id, this.href, 'get', 0);">打个招呼</a></li>
<?php } ?>
<li class="ul_pm"><a href="home.php?mod=spacecp&amp;ac=pm&amp;op=showmsg&amp;handlekey=showmsg_<?php echo $space['uid'];?>&amp;touid=<?php echo $space['uid'];?>&amp;pmid=0&amp;daterange=2" id="a_sendpm_<?php echo $space['uid'];?>" onclick="showWindow('showMsgBox', this.href, 'get', 0)">发送消息</a></li>
<?php } ?>
</ul>
<?php if(checkperm('allowbanuser') || checkperm('allowedituser') || $_G['adminid'] == 1) { ?>
<hr class="da mtn m0">
<ul class="ptn xl xl2 cl">
<?php if(checkperm('allowbanuser') || checkperm('allowedituser')) { ?>
<li>
<?php if(checkperm('allowbanuser')) { ?>
<a href="<?php if($_G['adminid'] == 1) { ?>admin.php?action=members&operation=ban&username=<?php echo $encodeusername;?>&frames=yes<?php } else { ?>forum.php?mod=modcp&action=member&op=ban&uid=<?php echo $space['uid'];?><?php } ?>" id="usermanageli" onmouseover="showMenu(this.id)" class="showmenu" target="_blank">用户管理</a>
<?php } else { ?>
<a href="<?php if($_G['adminid'] == 1) { ?>admin.php?action=members&operation=search&username=<?php echo $encodeusername;?>&submit=yes&frames=yes<?php } else { ?>forum.php?mod=modcp&action=member&op=edit&uid=<?php echo $space['uid'];?><?php } ?>" id="usermanageli" onmouseover="showMenu(this.id)" class="showmenu" target="_blank">用户管理</a>
<?php } ?>
</li>
<?php } if($_G['adminid'] == 1) { ?>
<li><a href="forum.php?mod=modcp&amp;action=thread&amp;op=post&amp;do=search&amp;searchsubmit=1&amp;users=<?php echo $encodeusername;?>" id="umanageli" onmouseover="showMenu(this.id)" class="showmenu">内容管理</a></li>
<?php } ?>
</ul>
<?php if(checkperm('allowbanuser') || checkperm('allowedituser')) { ?>
<ul id="usermanageli_menu" class="p_pop" style="width: 80px; display:none;">
<?php if(checkperm('allowbanuser')) { ?>
<li><a href="<?php if($_G['adminid'] == 1) { ?>admin.php?action=members&operation=ban&username=<?php echo $encodeusername;?>&frames=yes<?php } else { ?>forum.php?mod=modcp&action=member&op=ban&uid=<?php echo $space['uid'];?><?php } ?>" target="_blank">禁止用户</a></li>
<?php } if(checkperm('allowedituser')) { ?>
<li><a href="<?php if($_G['adminid'] == 1) { ?>admin.php?action=members&operation=search&username=<?php echo $encodeusername;?>&submit=yes&frames=yes<?php } else { ?>forum.php?mod=modcp&action=member&op=edit&uid=<?php echo $space['uid'];?><?php } ?>" target="_blank">编辑用户</a></li>
<?php } ?>
</ul>
<?php } if($_G['adminid'] == 1) { ?>
<ul id="umanageli_menu" class="p_pop" style="width: 80px; display:none;">
<li><a href="forum.php?mod=modcp&amp;action=thread&amp;op=post&amp;searchsubmit=1&amp;do=search&amp;users=<?php echo $encodeusername;?>" target="_blank">管理帖子</a></li>
<?php if($_G['setting']['homestatus']) { ?>
<li><a href="admin.php?action=doing&amp;searchsubmit=1&amp;search=true&amp;fromumanage=1&amp;users=<?php echo $encodeusername;?>" target="_blank">管理记录</a></li>
<li><a href="admin.php?action=blog&amp;searchsubmit=1&amp;search=true&amp;fromumanage=1&amp;uid=<?php echo $space['uid'];?>" target="_blank">管理日志</a></li>
<li><a href="admin.php?action=feed&amp;searchsubmit=1&amp;fromumanage=1&amp;uid=<?php echo $space['uid'];?>" target="_blank">管理动态</a></li>
<li><a href="admin.php?action=album&amp;searchsubmit=1&amp;search=true&amp;fromumanage=1&amp;uid=<?php echo $space['uid'];?>" target="_blank">管理相册</a></li>
<li><a href="admin.php?action=pic&amp;searchsubmit=1&amp;detail=1&amp;search=true&amp;fromumanage=1&amp;users=<?php echo $encodeusername;?>" target="_blank">管理图片</a></li>
<li><a href="admin.php?action=comment&amp;searchsubmit=1&amp;fromumanage=1&amp;authorid=<?php echo $space['uid'];?>" target="_blank">管理评论</a></li>
<li><a href="admin.php?action=share&amp;searchsubmit=1&amp;search=true&amp;fromumanage=1&amp;uid=<?php echo $space['uid'];?>" target="_blank">管理分享</a></li>
<?php } if($_G['setting']['groupstatus']) { ?>
<li><a href="admin.php?action=threads&amp;operation=group&amp;searchsubmit=1&amp;detail=1&amp;search=true&amp;fromumanage=1&amp;users=<?php echo $encodeusername;?>" target="_blank">群组主题</a></li>
<li><a href="admin.php?action=prune&amp;searchsubmit=1&amp;detail=1&amp;operation=group&amp;fromumanage=1&amp;users=<?php echo $encodeusername;?>" target="_blank">群组帖子</a></li>
<?php } ?>
</ul>
<?php } } ?>
</div>
</div>
</div></div>
</div>


<?php if($_G['relatedlinks']) { ?>
<script type="text/javascript">
var relatedlink = [];<?php if(is_array($_G['relatedlinks'])) foreach($_G['relatedlinks'] as $key => $link) { ?>relatedlink[<?php echo $key;?>] = {'sname':'<?php echo $link['name'];?>', 'surl':'<?php echo $link['url'];?>'};
<?php } ?>
relatedlinks('blog_article');
</script>
<?php } if(!empty($_G['cookie']['clearUserdata']) && $_G['cookie']['clearUserdata'] == 'home') { ?>
<script type="text/javascript">saveUserdata('home', '')</script>
<?php } include template('common/footer'); ?>